﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;


//A sample class showing how to do things, its up to you to derive from Keyborad/Mouse Listener
//You can use simple IsKeyDown() in Update as well
namespace Imagine
{
    class SimplePhysicsSprite : GameObject
    {
        public  SimplePhysicsSprite(string texture)
        {
            m_physicsSprite = new PhysicsSprite(texture);

        }

        public void InitPhysics(eShapeType shape_)
        {
            m_physicsSprite.InitPhysics(shape_, id);
        }

        public override bool Update(Microsoft.Xna.Framework.GameTime time)
        {
            return m_physicsSprite.Update(time);
        }

        public override bool Draw(Microsoft.Xna.Framework.GameTime time)
        {
            return m_physicsSprite.Draw(time);
        }

        public PhysicsSprite PhysicsSprite
        {
            get { return m_physicsSprite;   }
            set { m_physicsSprite = value;  }
        }

         PhysicsSprite m_physicsSprite;

    }
}
